package com.xz.example.builder;

import com.xz.example.model.Actor;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     ActorBuilder   
 * @package    com.xz.example.builder  
 * @date   2019/11/27 18:58  
 * @explain
 */
public abstract class ActorBuilder {
    // protected修饰符代表只有子类可见(只有继承了该类的类可以直接使用),将复杂对象保护起来
    protected Actor actor = new Actor();

    public abstract void buildType();
    public abstract void buildSex();
    public abstract void buildFace();
    public abstract void buildCostume();
    public abstract void buildHairstyle();

    public Actor createActor(){
        return actor;
    };

}
